package com.designpatternspart2.creationaldesignpatterns.abstractfactory;

import com.designpatternspart2.creationaldesignpatterns.factorymethod.Animal;

/**
 * File Name: ReptileFactory.java
 * Version:
 * Description:
 * Package: com.designpatternspart2.abstractfactory
 * Author: Lance
 * Date: Apr 26, 2012
 */
public class ReptileFactory extends SpeciesFactory
{

    @Override
    public Animal getAnimal(String type)
    {
        if ("snake".equals(type))
        {
            return new Snake();
        }
        else
        {
            return new Tyrannosaurus();
        }
    }
}
